package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.DmcCsunGatewayConfigBodySensorMapper;
import com.csun.cmny.provider.model.domain.DmcCsunGatewayConfigBodySensor;
import com.csun.cmny.provider.service.DmcCsunGatewayConfigBodySensorService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Slf4j
@Service
@Transactional
public class DmcCsunGatewayConfigBodySensorServiceImpl extends BaseService<DmcCsunGatewayConfigBodySensor> implements DmcCsunGatewayConfigBodySensorService {
    @Resource
    private DmcCsunGatewayConfigBodySensorMapper dmcCsunGatewayConfigBodySensorMapper;

    @Override
    public DmcCsunGatewayConfigBodySensor selectByDeviceId(Long id) {
        return dmcCsunGatewayConfigBodySensorMapper.selectByDeviceId(id);
    }
}
